package com.zf.shuashua.bean;

import com.zf.shuashua.utils.Util;

import java.io.Serializable;

/**
 * 广告bean(开屏、信息流、激励视频)
 */
public class AdvertInfo implements Serializable {

    //广告计划id
    public int plan_id;
    //广告展示头像
    public String avatar = "";
    //广告点击地址
    public String click_url;
    //video或image
    public String media_type = "";
    //请求唯一id
    public String uuid;
    //图片宽度
    public int width;
    //图片高度
    public int height;
    //视频时长
    public int length;

    //以下字段为信息流广告特有
    //广告表情
    public String name;
    //广告详情
    public String details;
    //广告主昵称
    public String username;

    public String action_type;

    public String thumbnail = "";
    public String origin_url = "";
    //跳转类型，1.落地页 2.下载app
    public String link_type = "";
    public String nick_name = "";

    public boolean isDownloadType(){
        return "2".equals(link_type);
    }

    public boolean isVideo() {
        return "video".equals(media_type);
    }

    public int getPlan_id() {
        return plan_id;
    }

    public void setPlan_id(int plan_id) {
        this.plan_id = plan_id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getClick_url() {
        return click_url;
    }

    public void setClick_url(String click_url) {
        this.click_url = click_url;
    }

    public String getMedia_type() {
        return media_type;
    }

    public void setMedia_type(String media_type) {
        this.media_type = media_type;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}